// Created by Ajie on 2023/5/13.

#include <jni.h>
//#include "breath_led.h"

// 声明在 libbreathled.so 中定义的函数
extern "C" int led_init();
extern "C" int white_breath_led_is_enable(int);
extern "C" void led_exit();

extern "C"
JNIEXPORT jint JNICALL Java_com_jniproject_LedController_ledinit
  (JNIEnv *, jobject) {
    return led_init();
}

extern "C"
JNIEXPORT jint JNICALL Java_com_jniproject_LedController_whiteBreathLedIsEnable
  (JNIEnv *, jobject, jint value) {
    return white_breath_led_is_enable(value);
}

extern "C"
JNIEXPORT void JNICALL Java_com_jniproject_LedController_ledExit
  (JNIEnv *, jobject) {
    led_exit();
}
